{extend name="../application/public/base.html" /}
{block name="head"}
	<link rel="stylesheet" href="ADMIN_CUSTOM/css/list.css">
	<link rel="stylesheet" href="ADMIN_CUSTOM/css/btn.css">
    <style type="text/css">
        .box-btn{
            background: #fff;
            color: #009688;
            border: 1px solid #009688;
        }
        .activity-btn{
            background: rgba(153, 0, 0, 1);
            color: #fff;
            border: 1px solid rgba(153, 0, 0, 1);
        }
        .box-btn:hover{
            color: #009688;
            background: #fff;
            border: 1px solid #009688;
        }
    </style>
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a><cite>导航元素</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right;" onclick="location.reload()" title="刷新"><i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body" id="oper-box">
                            <input type="hidden" name="ty" value="{:Request()->param('ty')}">
                            <div class="layui-btn" onclick="xadmin.open('添加支出分类','/finance/cate/add/ty/{:Request()->param(\'ty\')}')">新增</div>
                            <div class="layui-btn" onclick="del_all();">删除</div>
                        </div>
                        <div class="layui-card-body">
                            <div class="layui-tab">
							  	<div class="layui-tab-content">
									<table class="layui-table layui-form" id="table-list" lay-filter="list">
		                              	
	                            	</table>
							  	</div>
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
{/block}
{block name="script"}
	<script type="text/javascript" src="ADMIN_CUSTOM/js/finance/cate/index.js"></script>
    <script id="table-btn" type="text/html">
        {{# if(d.oper === true){ }}
        <div class="layui-btn layui-bg-red" lay-event="del">删除</div>
        {{# }else{ }}
        <span style="color: #ADADAD;">无操作</span>
        {{# } }}
    </script>
   
{/block}